#include "stl.h"
#include "parse.h"
#include "solution.h"
int main(int argc, char *argv[])
{
    string str = "[[\"[[1,3],[6,9]]\",\"[2,5]\"],[\"[[1,2],[3,5],[6,7],[8,10],[12,16]]\",\"[4,8]\"],[\"[]\",\"[5,7]\"],[\"[[1,5]]\",\"[2,3]\"],[\"[[1,5]]\",\"[2,7]\"],[\"[[1,5]]\",\"[0,0]\"]]";
    vector<vector<string>> arr = parseStringArrArr(str);
    for (int i = 0; i < arr.size(); i++)
    {
      vector<string> args = arr[i];
      Solution *s = new Solution();
      vector<vector<int>> arg0 = parseIntegerArrArr(args[0]);
      vector<int> arg1 = parseIntegerArr(args[1]);
      vector<vector<int>> result=s->insert(arg0,arg1);
      string resultabc =serializeIntegerArrArr(result);
      cout << "resultabc"+to_string(i)+":" << resultabc <<"resultend"<< endl;
    }
    return 0;
}